package com.znsd.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

/**
 * <p>
 * 分类与品牌关联表
 * </p>
 *
 * @author Liuyl
 * @since 2019-10-16
 */
@TableName("base_catalog1_tm")
public class BaseCatalog1Tm extends Model<BaseCatalog1Tm> {

    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 品牌id
     */
    @TableField("tm_id")
    private Long tmId;
    /**
     * 分类id
     */
    @TableField("catalog1_id")
    private String catalog1Id;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getTmId() {
        return tmId;
    }

    public void setTmId(Long tmId) {
        this.tmId = tmId;
    }

    public String getCatalog1Id() {
        return catalog1Id;
    }

    public void setCatalog1Id(String catalog1Id) {
        this.catalog1Id = catalog1Id;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "BaseCatalog1Tm{" +
        "id=" + id +
        ", tmId=" + tmId +
        ", catalog1Id=" + catalog1Id +
        "}";
    }
}
